﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq.Mapping;
using System.Data.Linq;
using TwoWheels.Category;
using TwoWheels.Order;

namespace TwoWheels
{
    public class TwoWheelsDatabase : DataContext
    {
        public Table<Account.Klienci> clients;
        public Table<Account.Właściciele> owners;

        public Table<Kategoria> categories;
        public Table<Produkt> products;

        public Table<Zamówienie> order;
        public Table<PozycjaZamówienia> orderDetails;

        public Table<Dostawcy> suppliers;

        public AddProductToDBDataContext addProcedure;

        public TwoWheelsDatabase(string connectionString)
            : base(connectionString)
        {
            addProcedure = new AddProductToDBDataContext();
        }

    }
}